<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        .dox1{
            width: 800px;
            height: 8000px;
            background-color: yellow;
            background-image: url(./image/4.png);
            /* 默认平铺 */

            background-repeat: 10px 10px;        
            background-repeat: no-repeat;    
            background-position:top center;

            background-size: contain;
            background-attachment: scroll;
            

        /*  数值 百分数  cover 完全覆盖  contain放到最大尺寸 部分留白 */
        }

    </style>
</head>
<body>
    
    <div class="dox1"> </div>

</body>
</html>